cmake_minimum_required(VERSION 2.8.3)
project(xf_asr)

find_package(catkin REQUIRED COMPONENTS
  geometry_msgs
  std_msgs
  roscpp
  rosconsole
  turtlesim
  genmsg
)

set(workspace_path)

# generate_messages(DEPENDENCIES std_msgs)

catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES agir
#  CATKIN_DEPENDS geometry_msgs roscpp turtlesim
#  DEPENDS system_lib
)

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
)

# add_executable(helloworld2 src/helloworld2.cpp)
# target_link_libraries(helloworld2 ${catkin_LIBRARIES})


add_executable(voice_demo src/voice_demo.c)
target_link_libraries(
  voice_demo 
  ${catkin_LIBRARIES}
  ${CMAKE_CURRENT_SOURCE_DIR}/libs/libmsc.so -ldl -pthread 
)

add_executable(voice_command src/voice_command.cpp src/voice_simple.cpp src/xmlTest.cpp)
target_link_libraries(
  voice_command
  ${catkin_LIBRARIES}
  ${CMAKE_CURRENT_SOURCE_DIR}/libs/libmsc.so -ldl -pthread 
)




# aux_source_directory(./src/rapidxml XML_LIST)
# add_library(rapidxml ${XML_LIST})

# add_executable(xmlTest ./src/xmlTest.cpp)

# target_link_libraries(xmlTest ${catkin_LIBRARIES} )


# add_executable(voice_record src/voice_record.c src/speech_recognizer.c src/linuxrec.c)
# target_link_libraries(
#   voice_record
#   ${catkin_LIBRARIES}
#   ${CMAKE_CURRENT_SOURCE_DIR}/libs/libmsc.so -lmsc -lrt -ldl -lpthread -lasound -lstdc++
# )